home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / AIncludes / ImageCompression.a < prev    next >
Text File  |  1996-05-01  |  46KB  |  1,748 lines

  1. ;
  2. ;    File:        ImageCompression.a
  3. ;
  4. ;    Contains:    QuickTime Image Compression Interfaces.
  5. ;
  6. ;    Version:    Technology:    QuickTime 2.1
  7. ;                Release:    Universal Interfaces 3.0d3 on Copland DR1
  8. ;
  9. ;    Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10. ;
  11. ;    Bugs?:        If you find a problem with this file, send the file and version
  12. ;                information (from above) and the problem description to:
  13. ;
  14. ;                    Internet:    apple.bugs@applelink.apple.com
  15. ;                    AppleLink:    APPLE.BUGS
  16. ;
  17. ;
  18.     IF &TYPE('__IMAGECOMPRESSION__') = 'UNDEFINED' THEN
  19. __IMAGECOMPRESSION__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.     IF &TYPE('__QDOFFSCREEN__') = 'UNDEFINED' THEN
  28.     include 'QDOffscreen.a'
  29.     ENDIF
  30.     IF &TYPE('__COMPONENTS__') = 'UNDEFINED' THEN
  31.     include 'Components.a'
  32.     ENDIF
  33.     IF &TYPE('__WINDOWS__') = 'UNDEFINED' THEN
  34.     include 'Windows.a'
  35.     ENDIF
  36.     IF &TYPE('__STANDARDFILE__') = 'UNDEFINED' THEN
  37.     include 'StandardFile.a'
  38.     ENDIF
  39.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  40. MatrixRecord            RECORD 0
  41. matrix                     ds.l    3 * 3            ; offset: $0 (0)
  42. sizeof                     EQU *                    ; size:   $24 (36)
  43.                         ENDR
  44. ; typedef struct MatrixRecord *            MatrixRecordPtr
  45.  
  46. FixedPoint                RECORD 0
  47. x                         ds.l    1                ; offset: $0 (0)
  48. y                         ds.l    1                ; offset: $4 (4)
  49. sizeof                     EQU *                    ; size:   $8 (8)
  50.                         ENDR
  51. FixedRect                RECORD 0
  52. left                     ds.l    1                ; offset: $0 (0)
  53. top                         ds.l    1                ; offset: $4 (4)
  54. right                     ds.l    1                ; offset: $8 (8)
  55. bottom                     ds.l    1                ; offset: $C (12)
  56. sizeof                     EQU *                    ; size:   $10 (16)
  57.                         ENDR
  58. ;  These are the bits that are set in the Component flags, and also in the codecInfo struct. 
  59.  
  60. codecInfoDoes1                    EQU        $00000001
  61. codecInfoDoes2                    EQU        $00000002
  62. codecInfoDoes4                    EQU        $00000004
  63. codecInfoDoes8                    EQU        $00000008
  64. codecInfoDoes16                    EQU        $00000010
  65. codecInfoDoes32                    EQU        $00000020
  66. codecInfoDoesDither                EQU        $00000040
  67. codecInfoDoesStretch            EQU        $00000080
  68. codecInfoDoesShrink                EQU        $00000100
  69. codecInfoDoesMask                EQU        $00000200
  70. codecInfoDoesTemporal            EQU        $00000400
  71. codecInfoDoesDouble                EQU        $00000800
  72. codecInfoDoesQuad                EQU        $00001000
  73. codecInfoDoesHalf                EQU        $00002000
  74. codecInfoDoesQuarter            EQU        $00004000
  75. codecInfoDoesRotate                EQU        $00008000
  76. codecInfoDoesHorizFlip            EQU        $00010000
  77. codecInfoDoesVertFlip            EQU        $00020000
  78. codecInfoDoesSkew                EQU        $00040000
  79. codecInfoDoesBlend                EQU        $00080000
  80. codecInfoDoesWarp                EQU        $00100000
  81. codecInfoDoesRecompress            EQU        $00200000
  82. codecInfoDoesSpool                EQU        $00400000
  83. codecInfoDoesRateConstrain        EQU        $00800000
  84.  
  85. codecInfoDepth1                    EQU        $00000001
  86. codecInfoDepth2                    EQU        $00000002
  87. codecInfoDepth4                    EQU        $00000004
  88. codecInfoDepth8                    EQU        $00000008
  89. codecInfoDepth16                EQU        $00000010
  90. codecInfoDepth32                EQU        $00000020
  91. codecInfoDepth24                EQU        $00000040
  92. codecInfoDepth33                EQU        $00000080
  93. codecInfoDepth34                EQU        $00000100
  94. codecInfoDepth36                EQU        $00000200
  95. codecInfoDepth40                EQU        $00000400
  96. codecInfoStoresClut                EQU        $00000800
  97. codecInfoDoesLossless            EQU        $00001000
  98. codecInfoSequenceSensitive        EQU        $00002000
  99.  
  100. codecFlagUseImageBuffer            EQU        $00000001
  101. codecFlagUseScreenBuffer        EQU        $00000002
  102. codecFlagUpdatePrevious            EQU        $00000004
  103. codecFlagNoScreenUpdate            EQU        $00000008
  104. codecFlagWasCompressed            EQU        $00000010
  105. codecFlagDontOffscreen            EQU        $00000020
  106. codecFlagUpdatePreviousComp        EQU        $00000040
  107. codecFlagForceKeyFrame            EQU        $00000080
  108. codecFlagOnlyScreenUpdate        EQU        $00000100
  109. codecFlagLiveGrab                EQU        $00000200
  110. codecFlagDontUseNewImageBuffer    EQU        $00000400
  111. codecFlagInterlaceUpdate        EQU        $00000800
  112. codecFlagCatchUpDiff            EQU        $00001000
  113. codecFlagUsedNewImageBuffer        EQU        $00004000
  114. codecFlagUsedImageBuffer        EQU        $00008000
  115.  
  116.                                                             ; The minimum data size for spooling in or out data 
  117. codecMinimumDataSize            EQU        32768
  118.  
  119. compressorComponentType            EQU        'imco'                ; the type for "Components" which compress images 
  120. decompressorComponentType        EQU        'imdc'                ; the type for "Components" which decompress images 
  121. ; typedef Component                     CompressorComponent
  122.  
  123. ; typedef Component                     DecompressorComponent
  124.  
  125. ; typedef Component                     CodecComponent
  126.  
  127.  
  128. anyCodec                        EQU        0                    ; take first working codec of given type 
  129. bestSpeedCodec                    EQU        -1                    ; take fastest codec of given type 
  130. bestFidelityCodec                EQU        -2                    ; take codec which is most accurate 
  131. bestCompressionCodec            EQU        -3                    ; take codec of given type that is most accurate 
  132. ; typedef long                             CodecType
  133.  
  134. ; typedef unsigned short                 CodecFlags
  135.  
  136. ; typedef unsigned long                 CodecQ
  137.  
  138.  
  139. codecLosslessQuality            EQU        $00000400
  140. codecMaxQuality                    EQU        $000003FF
  141. codecMinQuality                    EQU        $00000000
  142. codecLowQuality                    EQU        $00000100
  143. codecNormalQuality                EQU        $00000200
  144. codecHighQuality                EQU        $00000300
  145.  
  146. codecCompletionSource            EQU        $01                    ; asynchronous codec is done with source data 
  147. codecCompletionDest                EQU        $02                    ; asynchronous codec is done with destination data 
  148. codecCompletionDontUnshield        EQU        $04                    ; on dest complete don't unshield cursor 
  149.  
  150. codecProgressOpen                EQU        0
  151. codecProgressUpdatePercent        EQU        1
  152. codecProgressClose                EQU        2
  153. ; typedef long                             ImageSequence
  154.  
  155. ; typedef long                             ImageSequenceDataSource
  156.  
  157. ICMProgressProcRecord    RECORD 0
  158. progressProc             ds.l    1                ; offset: $0 (0)
  159. progressRefCon             ds.l    1                ; offset: $4 (4)
  160. sizeof                     EQU *                    ; size:   $8 (8)
  161.                         ENDR
  162. ; typedef struct ICMProgressProcRecord * ICMProgressProcRecordPtr
  163.  
  164. ICMCompletionProcRecord    RECORD 0
  165. completionProc             ds.l    1                ; offset: $0 (0)
  166. completionRefCon         ds.l    1                ; offset: $4 (4)
  167. sizeof                     EQU *                    ; size:   $8 (8)
  168.                         ENDR
  169. ; typedef struct ICMCompletionProcRecord * ICMCompletionProcRecordPtr
  170.  
  171. ICMDataProcRecord        RECORD 0
  172. dataProc                 ds.l    1                ; offset: $0 (0)
  173. dataRefCon                 ds.l    1                ; offset: $4 (4)
  174. sizeof                     EQU *                    ; size:   $8 (8)
  175.                         ENDR
  176. ; typedef struct ICMDataProcRecord *    ICMDataProcRecordPtr
  177.  
  178. ICMFlushProcRecord        RECORD 0
  179. flushProc                 ds.l    1                ; offset: $0 (0)
  180. flushRefCon                 ds.l    1                ; offset: $4 (4)
  181. sizeof                     EQU *                    ; size:   $8 (8)
  182.                         ENDR
  183. ; typedef struct ICMFlushProcRecord *    ICMFlushProcRecordPtr
  184.  
  185. ICMAlignmentProcRecord    RECORD 0
  186. alignmentProc             ds.l    1                ; offset: $0 (0)
  187. alignmentRefCon             ds.l    1                ; offset: $4 (4)
  188. sizeof                     EQU *                    ; size:   $8 (8)
  189.                         ENDR
  190. ; typedef struct ICMAlignmentProcRecord * ICMAlignmentProcRecordPtr
  191.  
  192. DataRateParams            RECORD 0
  193. dataRate                 ds.l    1                ; offset: $0 (0)
  194. dataOverrun                 ds.l    1                ; offset: $4 (4)
  195. frameDuration             ds.l    1                ; offset: $8 (8)
  196. keyFrameRate             ds.l    1                ; offset: $C (12)
  197. minSpatialQuality         ds.l    1                ; offset: $10 (16)
  198. minTemporalQuality         ds.l    1                ; offset: $14 (20)
  199. sizeof                     EQU *                    ; size:   $18 (24)
  200.                         ENDR
  201. ; typedef struct DataRateParams *        DataRateParamsPtr
  202.  
  203. ImageDescription        RECORD 0
  204. idSize                     ds.l    1                ; offset: $0 (0)        ;  total size of ImageDescription including extra data ( CLUTs and other per sequence data 
  205. cType                     ds.l    1                ; offset: $4 (4)        ;  what kind of codec compressed this data 
  206. resvd1                     ds.l    1                ; offset: $8 (8)        ;  reserved for Apple use 
  207. resvd2                     ds.w    1                ; offset: $C (12)        ;  reserved for Apple use 
  208. dataRefIndex             ds.w    1                ; offset: $E (14)        ;  set to zero  
  209. version                     ds.w    1                ; offset: $10 (16)        ;  which version is this data 
  210. revisionLevel             ds.w    1                ; offset: $12 (18)        ;  what version of that codec did this 
  211. vendor                     ds.l    1                ; offset: $14 (20)        ;  whose  codec compressed this data 
  212. temporalQuality             ds.l    1                ; offset: $18 (24)        ;  what was the temporal quality factor  
  213. spatialQuality             ds.l    1                ; offset: $1C (28)        ;  what was the spatial quality factor 
  214. width                     ds.w    1                ; offset: $20 (32)        ;  how many pixels wide is this data 
  215. height                     ds.w    1                ; offset: $22 (34)        ;  how many pixels high is this data 
  216. hRes                     ds.l    1                ; offset: $24 (36)        ;  horizontal resolution 
  217. vRes                     ds.l    1                ; offset: $28 (40)        ;  vertical resolution 
  218. dataSize                 ds.l    1                ; offset: $2C (44)        ;  if known, the size of data for this image descriptor 
  219. frameCount                 ds.w    1                ; offset: $30 (48)        ;  number of frames this description applies to 
  220. name                     ds        Str31            ; offset: $32 (50)        ;  name of codec ( in case not installed )  
  221. depth                     ds.w    1                ; offset: $52 (82)        ;  what depth is this data (1-32) or ( 33-40 grayscale ) 
  222. clutID                     ds.w    1                ; offset: $54 (84)        ;  clut id or if 0 clut follows  or -1 if no clut 
  223. sizeof                     EQU *                    ; size:   $56 (86)
  224.                         ENDR
  225. ; typedef struct ImageDescription *        ImageDescriptionPtr
  226.  
  227. ; typedef ImageDescriptionPtr *            ImageDescriptionHandle
  228.  
  229. CodecInfo                RECORD 0
  230. typeName                 ds        Str31            ; offset: $0 (0)        ;  name of the codec type i.e.: 'Apple Image Compression' 
  231. version                     ds.w    1                ; offset: $20 (32)        ;  version of the codec data that this codec knows about 
  232. revisionLevel             ds.w    1                ; offset: $22 (34)        ;  revision level of this codec i.e: 0x00010001 (1.0.1) 
  233. vendor                     ds.l    1                ; offset: $24 (36)        ;  Maker of this codec i.e: 'appl' 
  234. decompressFlags             ds.l    1                ; offset: $28 (40)        ;  codecInfo flags for decompression capabilities 
  235. compressFlags             ds.l    1                ; offset: $2C (44)        ;  codecInfo flags for compression capabilities 
  236. formatFlags                 ds.l    1                ; offset: $30 (48)        ;  codecInfo flags for compression format details 
  237. compressionAccuracy         ds.b    1                ; offset: $34 (52)        ;  measure (1-255) of accuracy of this codec for compress (0 if unknown) 
  238. decompressionAccuracy     ds.b    1                ; offset: $35 (53)        ;  measure (1-255) of accuracy of this codec for decompress (0 if unknown) 
  239. compressionSpeed         ds.w    1                ; offset: $36 (54)        ;  ( millisecs for compressing 320x240 on base mac II) (0 if unknown)  
  240. decompressionSpeed         ds.w    1                ; offset: $38 (56)        ;  ( millisecs for decompressing 320x240 on mac II)(0 if unknown)  
  241. compressionLevel         ds.b    1                ; offset: $3A (58)        ;  measure (1-255) of compression level of this codec (0 if unknown)  
  242. resvd                     ds.b    1                ; offset: $3B (59)        ;  pad 
  243. minimumHeight             ds.w    1                ; offset: $3C (60)        ;  minimum height of image (block size) 
  244. minimumWidth             ds.w    1                ; offset: $3E (62)        ;  minimum width of image (block size) 
  245. decompressPipelineLatency  ds.w    1                ; offset: $40 (64)        ;  in milliseconds ( for asynchronous codecs ) 
  246. compressPipelineLatency     ds.w    1                ; offset: $42 (66)        ;  in milliseconds ( for asynchronous codecs ) 
  247. privateData                 ds.l    1                ; offset: $44 (68)
  248. sizeof                     EQU *                    ; size:   $48 (72)
  249.                         ENDR
  250. CodecNameSpec            RECORD 0
  251. codec                     ds.l    1                ; offset: $0 (0)
  252. cType                     ds.l    1                ; offset: $4 (4)
  253. typeName                 ds        Str31            ; offset: $8 (8)
  254. name                     ds.l    1                ; offset: $28 (40)
  255. sizeof                     EQU *                    ; size:   $2C (44)
  256.                         ENDR
  257. CodecNameSpecList        RECORD 0
  258. count                     ds.w    1                ; offset: $0 (0)
  259. list                     ds        CodecNameSpec    ; offset: $2 (2) <-- really an array of length one
  260. sizeof                     EQU *                    ; size:   $2E (46)
  261.                         ENDR
  262. ; typedef struct CodecNameSpecList *    CodecNameSpecListPtr
  263.  
  264.  
  265. defaultDither                    EQU        0
  266. forceDither                        EQU        1
  267. suppressDither                    EQU        2
  268. useColorMatching                EQU        4
  269. ICMFrameTimeRecord        RECORD 0
  270. value                     ds        wide            ; offset: $0 (0)        ;  frame time
  271. scale                     ds.l    1                ; offset: $8 (8)        ;  timescale of value/duration fields
  272. base                     ds.l    1                ; offset: $C (12)        ;  timebase
  273. duration                 ds.l    1                ; offset: $10 (16)        ;  duration frame is to be displayed (0 if unknown)
  274. rate                     ds.l    1                ; offset: $14 (20)        ;  rate of timebase relative to wall-time
  275. sizeof                     EQU *                    ; size:   $18 (24)
  276.                         ENDR
  277. ; typedef struct ICMFrameTimeRecord *    ICMFrameTimePtr
  278.  
  279. ;
  280. ; pascal OSErr CodecManagerVersion(long *version)
  281. ;
  282.     IF ¨ GENERATINGCFM THEN
  283.         Macro
  284.         _CodecManagerVersion
  285.             moveq               #0,D0
  286.             dc.w                $AAA3
  287.         EndM
  288.     ELSE
  289.         IMPORT_CFM_FUNCTION CodecManagerVersion
  290.     ENDIF
  291.  
  292. ;
  293. ; pascal OSErr GetCodecNameList(CodecNameSpecListPtr *list, short showAll)
  294. ;
  295.     IF ¨ GENERATINGCFM THEN
  296.         Macro
  297.         _GetCodecNameList
  298.             moveq               #1,D0
  299.             dc.w                $AAA3
  300.         EndM
  301.     ELSE
  302.         IMPORT_CFM_FUNCTION GetCodecNameList
  303.     ENDIF
  304.  
  305. ;
  306. ; pascal OSErr DisposeCodecNameList(CodecNameSpecListPtr list)
  307. ;
  308.     IF ¨ GENERATINGCFM THEN
  309.         Macro
  310.         _DisposeCodecNameList
  311.             moveq               #15,D0
  312.             dc.w                $AAA3
  313.         EndM
  314.     ELSE
  315.         IMPORT_CFM_FUNCTION DisposeCodecNameList
  316.     ENDIF
  317.  
  318. ;
  319. ; pascal OSErr GetCodecInfo(CodecInfo *info, CodecType cType, CodecComponent codec)
  320. ;
  321.     IF ¨ GENERATINGCFM THEN
  322.         Macro
  323.         _GetCodecInfo
  324.             moveq               #3,D0
  325.             dc.w                $AAA3
  326.         EndM
  327.     ELSE
  328.         IMPORT_CFM_FUNCTION GetCodecInfo
  329.     ENDIF
  330.  
  331. ;
  332. ; pascal OSErr GetMaxCompressionSize(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, long *size)
  333. ;
  334.     IF ¨ GENERATINGCFM THEN
  335.         Macro
  336.         _GetMaxCompressionSize
  337.             moveq               #4,D0
  338.             dc.w                $AAA3
  339.         EndM
  340.     ELSE
  341.         IMPORT_CFM_FUNCTION GetMaxCompressionSize
  342.     ENDIF
  343.  
  344. ;
  345. ; pascal OSErr GetCompressionTime(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ *spatialQuality, CodecQ *temporalQuality, unsigned long *compressTime)
  346. ;
  347.     IF ¨ GENERATINGCFM THEN
  348.         Macro
  349.         _GetCompressionTime
  350.             moveq               #5,D0
  351.             dc.w                $AAA3
  352.         EndM
  353.     ELSE
  354.         IMPORT_CFM_FUNCTION GetCompressionTime
  355.     ENDIF
  356.  
  357. ;
  358. ; pascal OSErr CompressImage(PixMapHandle src, const Rect *srcRect, CodecQ quality, CodecType cType, ImageDescriptionHandle desc, Ptr data)
  359. ;
  360.     IF ¨ GENERATINGCFM THEN
  361.         Macro
  362.         _CompressImage
  363.             moveq               #6,D0
  364.             dc.w                $AAA3
  365.         EndM
  366.     ELSE
  367.         IMPORT_CFM_FUNCTION CompressImage
  368.     ENDIF
  369.  
  370. ;
  371. ; pascal OSErr FCompressImage(PixMapHandle src, const Rect *srcRect, short colorDepth, CodecQ quality, CodecType cType, CompressorComponent codec, CTabHandle clut, CodecFlags flags, long bufferSize, ICMFlushProcRecordPtr flushProc, ICMProgressProcRecordPtr progressProc, ImageDescriptionHandle desc, Ptr data)
  372. ;
  373.     IF ¨ GENERATINGCFM THEN
  374.         Macro
  375.         _FCompressImage
  376.             moveq               #7,D0
  377.             dc.w                $AAA3
  378.         EndM
  379.     ELSE
  380.         IMPORT_CFM_FUNCTION FCompressImage
  381.     ENDIF
  382.  
  383. ;
  384. ; pascal OSErr DecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, const Rect *dstRect, short mode, RgnHandle mask)
  385. ;
  386.     IF ¨ GENERATINGCFM THEN
  387.         Macro
  388.         _DecompressImage
  389.             moveq               #8,D0
  390.             dc.w                $AAA3
  391.         EndM
  392.     ELSE
  393.         IMPORT_CFM_FUNCTION DecompressImage
  394.     ENDIF
  395.  
  396. ;
  397. ; pascal OSErr FDecompressImage(Ptr data, ImageDescriptionHandle desc, PixMapHandle dst, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapHandle matte, const Rect *matteRect, CodecQ accuracy, DecompressorComponent codec, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  398. ;
  399.     IF ¨ GENERATINGCFM THEN
  400.         Macro
  401.         _FDecompressImage
  402.             moveq               #9,D0
  403.             dc.w                $AAA3
  404.         EndM
  405.     ELSE
  406.         IMPORT_CFM_FUNCTION FDecompressImage
  407.     ENDIF
  408.  
  409. ;
  410. ; pascal OSErr CompressSequenceBegin(ImageSequence *seqID, PixMapHandle src, PixMapHandle prev, const Rect *srcRect, const Rect *prevRect, short colorDepth, CodecType cType, CompressorComponent codec, CodecQ spatialQuality, CodecQ temporalQuality, long keyFrameRate, CTabHandle clut, CodecFlags flags, ImageDescriptionHandle desc)
  411. ;
  412.     IF ¨ GENERATINGCFM THEN
  413.         Macro
  414.         _CompressSequenceBegin
  415.             moveq               #10,D0
  416.             dc.w                $AAA3
  417.         EndM
  418.     ELSE
  419.         IMPORT_CFM_FUNCTION CompressSequenceBegin
  420.     ENDIF
  421.  
  422. ;
  423. ; pascal OSErr CompressSequenceFrame(ImageSequence seqID, PixMapHandle src, const Rect *srcRect, CodecFlags flags, Ptr data, long *dataSize, UInt8 *similarity, ICMCompletionProcRecordPtr asyncCompletionProc)
  424. ;
  425.     IF ¨ GENERATINGCFM THEN
  426.         Macro
  427.         _CompressSequenceFrame
  428.             moveq               #11,D0
  429.             dc.w                $AAA3
  430.         EndM
  431.     ELSE
  432.         IMPORT_CFM_FUNCTION CompressSequenceFrame
  433.     ENDIF
  434.  
  435. ;
  436. ; pascal OSErr DecompressSequenceBegin(ImageSequence *seqID, ImageDescriptionHandle desc, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  437. ;
  438.     IF ¨ GENERATINGCFM THEN
  439.         Macro
  440.         _DecompressSequenceBegin
  441.             moveq               #13,D0
  442.             dc.w                $AAA3
  443.         EndM
  444.     ELSE
  445.         IMPORT_CFM_FUNCTION DecompressSequenceBegin
  446.     ENDIF
  447.  
  448. ;
  449. ; pascal OSErr DecompressSequenceBeginS(ImageSequence *seqID, ImageDescriptionHandle desc, Ptr data, long dataSize, CGrafPtr port, GDHandle gdh, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, CodecFlags flags, CodecQ accuracy, DecompressorComponent codec)
  450. ;
  451.     IF ¨ GENERATINGCFM THEN
  452.         Macro
  453.         _DecompressSequenceBeginS
  454.             move.l              #$0030005D,D0
  455.             dc.w                $AAA3
  456.         EndM
  457.     ELSE
  458.         IMPORT_CFM_FUNCTION DecompressSequenceBeginS
  459.     ENDIF
  460.  
  461. ;
  462. ; pascal OSErr DecompressSequenceFrame(ImageSequence seqID, Ptr data, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  463. ;
  464.     IF ¨ GENERATINGCFM THEN
  465.         Macro
  466.         _DecompressSequenceFrame
  467.             moveq               #14,D0
  468.             dc.w                $AAA3
  469.         EndM
  470.     ELSE
  471.         IMPORT_CFM_FUNCTION DecompressSequenceFrame
  472.     ENDIF
  473.  
  474. ;
  475. ; pascal OSErr DecompressSequenceFrameS(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc)
  476. ;
  477.     IF ¨ GENERATINGCFM THEN
  478.         Macro
  479.         _DecompressSequenceFrameS
  480.             move.l              #$00160047,D0
  481.             dc.w                $AAA3
  482.         EndM
  483.     ELSE
  484.         IMPORT_CFM_FUNCTION DecompressSequenceFrameS
  485.     ENDIF
  486.  
  487. ;
  488. ; pascal OSErr DecompressSequenceFrameWhen(ImageSequence seqID, Ptr data, long dataSize, CodecFlags inFlags, CodecFlags *outFlags, ICMCompletionProcRecordPtr asyncCompletionProc, const ICMFrameTimeRecord *frameTime)
  489. ;
  490.     IF ¨ GENERATINGCFM THEN
  491.         Macro
  492.         _DecompressSequenceFrameWhen
  493.             move.l              #$001A005E,D0
  494.             dc.w                $AAA3
  495.         EndM
  496.     ELSE
  497.         IMPORT_CFM_FUNCTION DecompressSequenceFrameWhen
  498.     ENDIF
  499.  
  500. ;
  501. ; pascal OSErr CDSequenceFlush(ImageSequence seqID)
  502. ;
  503.     IF ¨ GENERATINGCFM THEN
  504.         Macro
  505.         _CDSequenceFlush
  506.             move.l              #$0004005F,D0
  507.             dc.w                $AAA3
  508.         EndM
  509.     ELSE
  510.         IMPORT_CFM_FUNCTION CDSequenceFlush
  511.     ENDIF
  512.  
  513. ;
  514. ; pascal OSErr SetDSequenceMatrix(ImageSequence seqID, MatrixRecordPtr matrix)
  515. ;
  516.     IF ¨ GENERATINGCFM THEN
  517.         Macro
  518.         _SetDSequenceMatrix
  519.             moveq               #16,D0
  520.             dc.w                $AAA3
  521.         EndM
  522.     ELSE
  523.         IMPORT_CFM_FUNCTION SetDSequenceMatrix
  524.     ENDIF
  525.  
  526. ;
  527. ; pascal OSErr SetDSequenceMatte(ImageSequence seqID, PixMapHandle matte, const Rect *matteRect)
  528. ;
  529.     IF ¨ GENERATINGCFM THEN
  530.         Macro
  531.         _SetDSequenceMatte
  532.             moveq               #17,D0
  533.             dc.w                $AAA3
  534.         EndM
  535.     ELSE
  536.         IMPORT_CFM_FUNCTION SetDSequenceMatte
  537.     ENDIF
  538.  
  539. ;
  540. ; pascal OSErr SetDSequenceMask(ImageSequence seqID, RgnHandle mask)
  541. ;
  542.     IF ¨ GENERATINGCFM THEN
  543.         Macro
  544.         _SetDSequenceMask
  545.             moveq               #18,D0
  546.             dc.w                $AAA3
  547.         EndM
  548.     ELSE
  549.         IMPORT_CFM_FUNCTION SetDSequenceMask
  550.     ENDIF
  551.  
  552. ;
  553. ; pascal OSErr SetDSequenceTransferMode(ImageSequence seqID, short mode, const RGBColor *opColor)
  554. ;
  555.     IF ¨ GENERATINGCFM THEN
  556.         Macro
  557.         _SetDSequenceTransferMode
  558.             moveq               #19,D0
  559.             dc.w                $AAA3
  560.         EndM
  561.     ELSE
  562.         IMPORT_CFM_FUNCTION SetDSequenceTransferMode
  563.     ENDIF
  564.  
  565. ;
  566. ; pascal OSErr SetDSequenceDataProc(ImageSequence seqID, ICMDataProcRecordPtr dataProc, long bufferSize)
  567. ;
  568.     IF ¨ GENERATINGCFM THEN
  569.         Macro
  570.         _SetDSequenceDataProc
  571.             moveq               #20,D0
  572.             dc.w                $AAA3
  573.         EndM
  574.     ELSE
  575.         IMPORT_CFM_FUNCTION SetDSequenceDataProc
  576.     ENDIF
  577.  
  578. ;
  579. ; pascal OSErr SetDSequenceAccuracy(ImageSequence seqID, CodecQ accuracy)
  580. ;
  581.     IF ¨ GENERATINGCFM THEN
  582.         Macro
  583.         _SetDSequenceAccuracy
  584.             moveq               #52,D0
  585.             dc.w                $AAA3
  586.         EndM
  587.     ELSE
  588.         IMPORT_CFM_FUNCTION SetDSequenceAccuracy
  589.     ENDIF
  590.  
  591. ;
  592. ; pascal OSErr SetDSequenceSrcRect(ImageSequence seqID, const Rect *srcRect)
  593. ;
  594.     IF ¨ GENERATINGCFM THEN
  595.         Macro
  596.         _SetDSequenceSrcRect
  597.             moveq               #53,D0
  598.             dc.w                $AAA3
  599.         EndM
  600.     ELSE
  601.         IMPORT_CFM_FUNCTION SetDSequenceSrcRect
  602.     ENDIF
  603.  
  604. ;
  605. ; pascal OSErr GetDSequenceImageBuffer(ImageSequence seqID, GWorldPtr *gworld)
  606. ;
  607.     IF ¨ GENERATINGCFM THEN
  608.         Macro
  609.         _GetDSequenceImageBuffer
  610.             moveq               #21,D0
  611.             dc.w                $AAA3
  612.         EndM
  613.     ELSE
  614.         IMPORT_CFM_FUNCTION GetDSequenceImageBuffer
  615.     ENDIF
  616.  
  617. ;
  618. ; pascal OSErr GetDSequenceScreenBuffer(ImageSequence seqID, GWorldPtr *gworld)
  619. ;
  620.     IF ¨ GENERATINGCFM THEN
  621.         Macro
  622.         _GetDSequenceScreenBuffer
  623.             moveq               #22,D0
  624.             dc.w                $AAA3
  625.         EndM
  626.     ELSE
  627.         IMPORT_CFM_FUNCTION GetDSequenceScreenBuffer
  628.     ENDIF
  629.  
  630. ;
  631. ; pascal OSErr SetCSequenceQuality(ImageSequence seqID, CodecQ spatialQuality, CodecQ temporalQuality)
  632. ;
  633.     IF ¨ GENERATINGCFM THEN
  634.         Macro
  635.         _SetCSequenceQuality
  636.             moveq               #23,D0
  637.             dc.w                $AAA3
  638.         EndM
  639.     ELSE
  640.         IMPORT_CFM_FUNCTION SetCSequenceQuality
  641.     ENDIF
  642.  
  643. ;
  644. ; pascal OSErr SetCSequencePrev(ImageSequence seqID, PixMapHandle prev, const Rect *prevRect)
  645. ;
  646.     IF ¨ GENERATINGCFM THEN
  647.         Macro
  648.         _SetCSequencePrev
  649.             moveq               #24,D0
  650.             dc.w                $AAA3
  651.         EndM
  652.     ELSE
  653.         IMPORT_CFM_FUNCTION SetCSequencePrev
  654.     ENDIF
  655.  
  656. ;
  657. ; pascal OSErr SetCSequenceFlushProc(ImageSequence seqID, ICMFlushProcRecordPtr flushProc, long bufferSize)
  658. ;
  659.     IF ¨ GENERATINGCFM THEN
  660.         Macro
  661.         _SetCSequenceFlushProc
  662.             moveq               #51,D0
  663.             dc.w                $AAA3
  664.         EndM
  665.     ELSE
  666.         IMPORT_CFM_FUNCTION SetCSequenceFlushProc
  667.     ENDIF
  668.  
  669. ;
  670. ; pascal OSErr SetCSequenceKeyFrameRate(ImageSequence seqID, long keyframerate)
  671. ;
  672.     IF ¨ GENERATINGCFM THEN
  673.         Macro
  674.         _SetCSequenceKeyFrameRate
  675.             moveq               #54,D0
  676.             dc.w                $AAA3
  677.         EndM
  678.     ELSE
  679.         IMPORT_CFM_FUNCTION SetCSequenceKeyFrameRate
  680.     ENDIF
  681.  
  682. ;
  683. ; pascal OSErr GetCSequenceKeyFrameRate(ImageSequence seqID, long *keyframerate)
  684. ;
  685.     IF ¨ GENERATINGCFM THEN
  686.         Macro
  687.         _GetCSequenceKeyFrameRate
  688.             move.l              #$0008004B,D0
  689.             dc.w                $AAA3
  690.         EndM
  691.     ELSE
  692.         IMPORT_CFM_FUNCTION GetCSequenceKeyFrameRate
  693.     ENDIF
  694.  
  695. ;
  696. ; pascal OSErr GetCSequencePrevBuffer(ImageSequence seqID, GWorldPtr *gworld)
  697. ;
  698.     IF ¨ GENERATINGCFM THEN
  699.         Macro
  700.         _GetCSequencePrevBuffer
  701.             moveq               #25,D0
  702.             dc.w                $AAA3
  703.         EndM
  704.     ELSE
  705.         IMPORT_CFM_FUNCTION GetCSequencePrevBuffer
  706.     ENDIF
  707.  
  708. ;
  709. ; pascal OSErr CDSequenceBusy(ImageSequence seqID)
  710. ;
  711.     IF ¨ GENERATINGCFM THEN
  712.         Macro
  713.         _CDSequenceBusy
  714.             moveq               #26,D0
  715.             dc.w                $AAA3
  716.         EndM
  717.     ELSE
  718.         IMPORT_CFM_FUNCTION CDSequenceBusy
  719.     ENDIF
  720.  
  721. ;
  722. ; pascal OSErr CDSequenceEnd(ImageSequence seqID)
  723. ;
  724.     IF ¨ GENERATINGCFM THEN
  725.         Macro
  726.         _CDSequenceEnd
  727.             moveq               #27,D0
  728.             dc.w                $AAA3
  729.         EndM
  730.     ELSE
  731.         IMPORT_CFM_FUNCTION CDSequenceEnd
  732.     ENDIF
  733.  
  734. ;
  735. ; pascal OSErr CDSequenceEquivalentImageDescription(ImageSequence seqID, ImageDescriptionHandle newDesc, Boolean *equivalent)
  736. ;
  737.     IF ¨ GENERATINGCFM THEN
  738.         Macro
  739.         _CDSequenceEquivalentImageDescription
  740.             move.l              #$000C0065,D0
  741.             dc.w                $AAA3
  742.         EndM
  743.     ELSE
  744.         IMPORT_CFM_FUNCTION CDSequenceEquivalentImageDescription
  745.     ENDIF
  746.  
  747. ;
  748. ; pascal OSErr GetCompressedImageSize(ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, long *dataSize)
  749. ;
  750.     IF ¨ GENERATINGCFM THEN
  751.         Macro
  752.         _GetCompressedImageSize
  753.             moveq               #28,D0
  754.             dc.w                $AAA3
  755.         EndM
  756.     ELSE
  757.         IMPORT_CFM_FUNCTION GetCompressedImageSize
  758.     ENDIF
  759.  
  760. ;
  761. ; pascal OSErr GetSimilarity(PixMapHandle src, const Rect *srcRect, ImageDescriptionHandle desc, Ptr data, Fixed *similarity)
  762. ;
  763.     IF ¨ GENERATINGCFM THEN
  764.         Macro
  765.         _GetSimilarity
  766.             moveq               #29,D0
  767.             dc.w                $AAA3
  768.         EndM
  769.     ELSE
  770.         IMPORT_CFM_FUNCTION GetSimilarity
  771.     ENDIF
  772.  
  773. ;
  774. ; pascal OSErr GetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle *ctable)
  775. ;
  776.     IF ¨ GENERATINGCFM THEN
  777.         Macro
  778.         _GetImageDescriptionCTable
  779.             moveq               #30,D0
  780.             dc.w                $AAA3
  781.         EndM
  782.     ELSE
  783.         IMPORT_CFM_FUNCTION GetImageDescriptionCTable
  784.     ENDIF
  785.  
  786. ;
  787. ; pascal OSErr SetImageDescriptionCTable(ImageDescriptionHandle desc, CTabHandle ctable)
  788. ;
  789.     IF ¨ GENERATINGCFM THEN
  790.         Macro
  791.         _SetImageDescriptionCTable
  792.             moveq               #31,D0
  793.             dc.w                $AAA3
  794.         EndM
  795.     ELSE
  796.         IMPORT_CFM_FUNCTION SetImageDescriptionCTable
  797.     ENDIF
  798.  
  799. ;
  800. ; pascal OSErr GetImageDescriptionExtension(ImageDescriptionHandle desc, Handle *extension, long idType, long index)
  801. ;
  802.     IF ¨ GENERATINGCFM THEN
  803.         Macro
  804.         _GetImageDescriptionExtension
  805.             moveq               #32,D0
  806.             dc.w                $AAA3
  807.         EndM
  808.     ELSE
  809.         IMPORT_CFM_FUNCTION GetImageDescriptionExtension
  810.     ENDIF
  811.  
  812. ;
  813. ; pascal OSErr AddImageDescriptionExtension(ImageDescriptionHandle desc, Handle extension, long idType)
  814. ;
  815.     IF ¨ GENERATINGCFM THEN
  816.         Macro
  817.         _AddImageDescriptionExtension
  818.             moveq               #33,D0
  819.             dc.w                $AAA3
  820.         EndM
  821.     ELSE
  822.         IMPORT_CFM_FUNCTION AddImageDescriptionExtension
  823.     ENDIF
  824.  
  825. ;
  826. ; pascal OSErr SetImageDescriptionExtension(ImageDescriptionHandle desc, Handle extension, long idType)
  827. ;
  828.     IF ¨ GENERATINGCFM THEN
  829.         Macro
  830.         _SetImageDescriptionExtension
  831.             moveq               #33,D0
  832.             dc.w                $AAA3
  833.         EndM
  834.     ELSE
  835.         IMPORT_CFM_FUNCTION SetImageDescriptionExtension
  836.     ENDIF
  837.  
  838. ;
  839. ; pascal OSErr RemoveImageDescriptionExtension(ImageDescription **desc, long idType, long index)
  840. ;
  841.     IF ¨ GENERATINGCFM THEN
  842.         Macro
  843.         _RemoveImageDescriptionExtension
  844.             move.l              #$000C003A,D0
  845.             dc.w                $AAA3
  846.         EndM
  847.     ELSE
  848.         IMPORT_CFM_FUNCTION RemoveImageDescriptionExtension
  849.     ENDIF
  850.  
  851. ;
  852. ; pascal OSErr CountImageDescriptionExtensionType(ImageDescription **desc, long idType, long *count)
  853. ;
  854.     IF ¨ GENERATINGCFM THEN
  855.         Macro
  856.         _CountImageDescriptionExtensionType
  857.             move.l              #$000C003B,D0
  858.             dc.w                $AAA3
  859.         EndM
  860.     ELSE
  861.         IMPORT_CFM_FUNCTION CountImageDescriptionExtensionType
  862.     ENDIF
  863.  
  864. ;
  865. ; pascal OSErr GetNextImageDescriptionExtensionType(ImageDescription **desc, long *idType)
  866. ;
  867.     IF ¨ GENERATINGCFM THEN
  868.         Macro
  869.         _GetNextImageDescriptionExtensionType
  870.             move.l              #$0008003C,D0
  871.             dc.w                $AAA3
  872.         EndM
  873.     ELSE
  874.         IMPORT_CFM_FUNCTION GetNextImageDescriptionExtensionType
  875.     ENDIF
  876.  
  877. ;
  878. ; pascal OSErr FindCodec(CodecType cType, CodecComponent specCodec, CompressorComponent *compressor, DecompressorComponent *decompressor)
  879. ;
  880.     IF ¨ GENERATINGCFM THEN
  881.         Macro
  882.         _FindCodec
  883.             moveq               #35,D0
  884.             dc.w                $AAA3
  885.         EndM
  886.     ELSE
  887.         IMPORT_CFM_FUNCTION FindCodec
  888.     ENDIF
  889.  
  890. ;
  891. ; pascal OSErr CompressPicture(PicHandle srcPicture, PicHandle dstPicture, CodecQ quality, CodecType cType)
  892. ;
  893.     IF ¨ GENERATINGCFM THEN
  894.         Macro
  895.         _CompressPicture
  896.             moveq               #36,D0
  897.             dc.w                $AAA3
  898.         EndM
  899.     ELSE
  900.         IMPORT_CFM_FUNCTION CompressPicture
  901.     ENDIF
  902.  
  903. ;
  904. ; pascal OSErr FCompressPicture(PicHandle srcPicture, PicHandle dstPicture, short colorDepth, CTabHandle clut, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  905. ;
  906.     IF ¨ GENERATINGCFM THEN
  907.         Macro
  908.         _FCompressPicture
  909.             moveq               #37,D0
  910.             dc.w                $AAA3
  911.         EndM
  912.     ELSE
  913.         IMPORT_CFM_FUNCTION FCompressPicture
  914.     ENDIF
  915.  
  916. ;
  917. ; pascal OSErr CompressPictureFile(short srcRefNum, short dstRefNum, CodecQ quality, CodecType cType)
  918. ;
  919.     IF ¨ GENERATINGCFM THEN
  920.         Macro
  921.         _CompressPictureFile
  922.             moveq               #38,D0
  923.             dc.w                $AAA3
  924.         EndM
  925.     ELSE
  926.         IMPORT_CFM_FUNCTION CompressPictureFile
  927.     ENDIF
  928.  
  929. ;
  930. ; pascal OSErr FCompressPictureFile(short srcRefNum, short dstRefNum, short colorDepth, CTabHandle clut, CodecQ quality, short doDither, short compressAgain, ICMProgressProcRecordPtr progressProc, CodecType cType, CompressorComponent codec)
  931. ;
  932.     IF ¨ GENERATINGCFM THEN
  933.         Macro
  934.         _FCompressPictureFile
  935.             moveq               #39,D0
  936.             dc.w                $AAA3
  937.         EndM
  938.     ELSE
  939.         IMPORT_CFM_FUNCTION FCompressPictureFile
  940.     ENDIF
  941.  
  942. ;
  943. ; pascal OSErr GetPictureFileHeader(short refNum, Rect *frame, OpenCPicParams *header)
  944. ;
  945.     IF ¨ GENERATINGCFM THEN
  946.         Macro
  947.         _GetPictureFileHeader
  948.             moveq               #40,D0
  949.             dc.w                $AAA3
  950.         EndM
  951.     ELSE
  952.         IMPORT_CFM_FUNCTION GetPictureFileHeader
  953.     ENDIF
  954.  
  955. ;
  956. ; pascal OSErr DrawPictureFile(short refNum, const Rect *frame, ICMProgressProcRecordPtr progressProc)
  957. ;
  958.     IF ¨ GENERATINGCFM THEN
  959.         Macro
  960.         _DrawPictureFile
  961.             moveq               #41,D0
  962.             dc.w                $AAA3
  963.         EndM
  964.     ELSE
  965.         IMPORT_CFM_FUNCTION DrawPictureFile
  966.     ENDIF
  967.  
  968. ;
  969. ; pascal OSErr DrawTrimmedPicture(PicHandle srcPicture, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  970. ;
  971.     IF ¨ GENERATINGCFM THEN
  972.         Macro
  973.         _DrawTrimmedPicture
  974.             moveq               #46,D0
  975.             dc.w                $AAA3
  976.         EndM
  977.     ELSE
  978.         IMPORT_CFM_FUNCTION DrawTrimmedPicture
  979.     ENDIF
  980.  
  981. ;
  982. ; pascal OSErr DrawTrimmedPictureFile(short srcRefnum, const Rect *frame, RgnHandle trimMask, short doDither, ICMProgressProcRecordPtr progressProc)
  983. ;
  984.     IF ¨ GENERATINGCFM THEN
  985.         Macro
  986.         _DrawTrimmedPictureFile
  987.             moveq               #47,D0
  988.             dc.w                $AAA3
  989.         EndM
  990.     ELSE
  991.         IMPORT_CFM_FUNCTION DrawTrimmedPictureFile
  992.     ENDIF
  993.  
  994. ;
  995. ; pascal OSErr MakeThumbnailFromPicture(PicHandle picture, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  996. ;
  997.     IF ¨ GENERATINGCFM THEN
  998.         Macro
  999.         _MakeThumbnailFromPicture
  1000.             moveq               #42,D0
  1001.             dc.w                $AAA3
  1002.         EndM
  1003.     ELSE
  1004.         IMPORT_CFM_FUNCTION MakeThumbnailFromPicture
  1005.     ENDIF
  1006.  
  1007. ;
  1008. ; pascal OSErr MakeThumbnailFromPictureFile(short refNum, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  1009. ;
  1010.     IF ¨ GENERATINGCFM THEN
  1011.         Macro
  1012.         _MakeThumbnailFromPictureFile
  1013.             moveq               #43,D0
  1014.             dc.w                $AAA3
  1015.         EndM
  1016.     ELSE
  1017.         IMPORT_CFM_FUNCTION MakeThumbnailFromPictureFile
  1018.     ENDIF
  1019.  
  1020. ;
  1021. ; pascal OSErr MakeThumbnailFromPixMap(PixMapHandle src, const Rect *srcRect, short colorDepth, PicHandle thumbnail, ICMProgressProcRecordPtr progressProc)
  1022. ;
  1023.     IF ¨ GENERATINGCFM THEN
  1024.         Macro
  1025.         _MakeThumbnailFromPixMap
  1026.             moveq               #44,D0
  1027.             dc.w                $AAA3
  1028.         EndM
  1029.     ELSE
  1030.         IMPORT_CFM_FUNCTION MakeThumbnailFromPixMap
  1031.     ENDIF
  1032.  
  1033. ;
  1034. ; pascal OSErr TrimImage(ImageDescriptionHandle desc, Ptr inData, long inBufferSize, ICMDataProcRecordPtr dataProc, Ptr outData, long outBufferSize, ICMFlushProcRecordPtr flushProc, Rect *trimRect, ICMProgressProcRecordPtr progressProc)
  1035. ;
  1036.     IF ¨ GENERATINGCFM THEN
  1037.         Macro
  1038.         _TrimImage
  1039.             moveq               #45,D0
  1040.             dc.w                $AAA3
  1041.         EndM
  1042.     ELSE
  1043.         IMPORT_CFM_FUNCTION TrimImage
  1044.     ENDIF
  1045.  
  1046. ;
  1047. ; pascal OSErr ConvertImage(ImageDescriptionHandle srcDD, Ptr srcData, short colorDepth, CTabHandle clut, CodecQ accuracy, CodecQ quality, CodecType cType, CodecComponent codec, ImageDescriptionHandle dstDD, Ptr dstData)
  1048. ;
  1049.     IF ¨ GENERATINGCFM THEN
  1050.         Macro
  1051.         _ConvertImage
  1052.             moveq               #48,D0
  1053.             dc.w                $AAA3
  1054.         EndM
  1055.     ELSE
  1056.         IMPORT_CFM_FUNCTION ConvertImage
  1057.     ENDIF
  1058.  
  1059. ;
  1060. ; pascal OSErr GetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle *desc, Ptr *data, long *bufferSize, ICMDataProcRecord *dataProc, ICMProgressProcRecord *progressProc)
  1061. ;
  1062.     IF ¨ GENERATINGCFM THEN
  1063.         Macro
  1064.         _GetCompressedPixMapInfo
  1065.             moveq               #55,D0
  1066.             dc.w                $AAA3
  1067.         EndM
  1068.     ELSE
  1069.         IMPORT_CFM_FUNCTION GetCompressedPixMapInfo
  1070.     ENDIF
  1071.  
  1072. ;
  1073. ; pascal OSErr SetCompressedPixMapInfo(PixMapPtr pix, ImageDescriptionHandle desc, Ptr data, long bufferSize, ICMDataProcRecordPtr dataProc, ICMProgressProcRecordPtr progressProc)
  1074. ;
  1075.     IF ¨ GENERATINGCFM THEN
  1076.         Macro
  1077.         _SetCompressedPixMapInfo
  1078.             moveq               #56,D0
  1079.             dc.w                $AAA3
  1080.         EndM
  1081.     ELSE
  1082.         IMPORT_CFM_FUNCTION SetCompressedPixMapInfo
  1083.     ENDIF
  1084.  
  1085. ;
  1086. ; pascal void StdPix(PixMapPtr src, const Rect *srcRect, MatrixRecordPtr matrix, short mode, RgnHandle mask, PixMapPtr matte, const Rect *matteRect, short flags)
  1087. ;
  1088.     IF ¨ GENERATINGCFM THEN
  1089.         Macro
  1090.         _StdPix
  1091.             moveq               #12,D0
  1092.             dc.w                $AAA3
  1093.         EndM
  1094.     ELSE
  1095.         IMPORT_CFM_FUNCTION StdPix
  1096.     ENDIF
  1097.  
  1098. ;
  1099. ; pascal OSErr TransformRgn(MatrixRecordPtr matrix, RgnHandle rgn)
  1100. ;
  1101.     IF ¨ GENERATINGCFM THEN
  1102.         Macro
  1103.         _TransformRgn
  1104.             moveq               #57,D0
  1105.             dc.w                $AAA3
  1106.         EndM
  1107.     ELSE
  1108.         IMPORT_CFM_FUNCTION TransformRgn
  1109.     ENDIF
  1110.  
  1111.     ENDIF
  1112.     IF FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED THEN
  1113. ;
  1114. ;**********
  1115. ;    preview stuff
  1116. ;**********
  1117. ;
  1118. ;
  1119. ; pascal void SFGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, DlgHookUPP dlgHook, SFReply *reply)
  1120. ;
  1121.     IF ¨ GENERATINGCFM THEN
  1122.         Macro
  1123.         _SFGetFilePreview
  1124.             moveq               #65,D0
  1125.             dc.w                $AAA3
  1126.         EndM
  1127.     ELSE
  1128.         IMPORT_CFM_FUNCTION SFGetFilePreview
  1129.     ENDIF
  1130.  
  1131. ;
  1132. ; pascal void SFPGetFilePreview(Point where, ConstStr255Param prompt, FileFilterUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, DlgHookUPP dlgHook, SFReply *reply, short dlgID, ModalFilterUPP filterProc)
  1133. ;
  1134.     IF ¨ GENERATINGCFM THEN
  1135.         Macro
  1136.         _SFPGetFilePreview
  1137.             moveq               #66,D0
  1138.             dc.w                $AAA3
  1139.         EndM
  1140.     ELSE
  1141.         IMPORT_CFM_FUNCTION SFPGetFilePreview
  1142.     ENDIF
  1143.  
  1144. ;
  1145. ; pascal void StandardGetFilePreview(FileFilterUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, StandardFileReply *reply)
  1146. ;
  1147.     IF ¨ GENERATINGCFM THEN
  1148.         Macro
  1149.         _StandardGetFilePreview
  1150.             moveq               #67,D0
  1151.             dc.w                $AAA3
  1152.         EndM
  1153.     ELSE
  1154.         IMPORT_CFM_FUNCTION StandardGetFilePreview
  1155.     ENDIF
  1156.  
  1157. ;
  1158. ; pascal void CustomGetFilePreview(FileFilterYDUPP fileFilter, short numTypes, ConstSFTypeListPtr typeList, StandardFileReply *reply, short dlgID, Point where, DlgHookYDUPP dlgHook, ModalFilterYDUPP filterProc, ActivationOrderListPtr activeList, ActivateYDUPP activateProc, void *yourDataPtr)
  1159. ;
  1160.     IF ¨ GENERATINGCFM THEN
  1161.         Macro
  1162.         _CustomGetFilePreview
  1163.             moveq               #68,D0
  1164.             dc.w                $AAA3
  1165.         EndM
  1166.     ELSE
  1167.         IMPORT_CFM_FUNCTION CustomGetFilePreview
  1168.     ENDIF
  1169.  
  1170.     ENDIF
  1171.     IF FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE THEN
  1172. ;
  1173. ; pascal OSErr MakeFilePreview(short resRefNum, ICMProgressProcRecordPtr progress)
  1174. ;
  1175.     IF ¨ GENERATINGCFM THEN
  1176.         Macro
  1177.         _MakeFilePreview
  1178.             moveq               #69,D0
  1179.             dc.w                $AAA3
  1180.         EndM
  1181.     ELSE
  1182.         IMPORT_CFM_FUNCTION MakeFilePreview
  1183.     ENDIF
  1184.  
  1185. ;
  1186. ; pascal OSErr AddFilePreview(short resRefNum, OSType previewType, Handle previewData)
  1187. ;
  1188.     IF ¨ GENERATINGCFM THEN
  1189.         Macro
  1190.         _AddFilePreview
  1191.             moveq               #70,D0
  1192.             dc.w                $AAA3
  1193.         EndM
  1194.     ELSE
  1195.         IMPORT_CFM_FUNCTION AddFilePreview
  1196.     ENDIF
  1197.  
  1198.  
  1199. sfpItemPreviewAreaUser            EQU        11
  1200. sfpItemPreviewStaticText        EQU        12
  1201. sfpItemPreviewDividerUser        EQU        13
  1202. sfpItemCreatePreviewButton        EQU        14
  1203. sfpItemShowPreviewButton        EQU        15
  1204. PreviewResourceRecord    RECORD 0
  1205. modDate                     ds.l    1                ; offset: $0 (0)
  1206. version                     ds.w    1                ; offset: $4 (4)
  1207. resType                     ds.l    1                ; offset: $6 (6)
  1208. resID                     ds.w    1                ; offset: $A (10)
  1209. sizeof                     EQU *                    ; size:   $C (12)
  1210.                         ENDR
  1211. ; typedef struct PreviewResourceRecord * PreviewResourcePtr
  1212.  
  1213. ; typedef PreviewResourcePtr *            PreviewResource
  1214.  
  1215. ;
  1216. ; pascal void AlignScreenRect(Rect *rp, ICMAlignmentProcRecordPtr alignmentProc)
  1217. ;
  1218.     IF ¨ GENERATINGCFM THEN
  1219.         Macro
  1220.         _AlignScreenRect
  1221.             move.l              #$0008004C,D0
  1222.             dc.w                $AAA3
  1223.         EndM
  1224.     ELSE
  1225.         IMPORT_CFM_FUNCTION AlignScreenRect
  1226.     ENDIF
  1227.  
  1228. ;
  1229. ; pascal void AlignWindow(WindowPtr wp, Boolean front, const Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  1230. ;
  1231.     IF ¨ GENERATINGCFM THEN
  1232.         Macro
  1233.         _AlignWindow
  1234.             move.l              #$000E004D,D0
  1235.             dc.w                $AAA3
  1236.         EndM
  1237.     ELSE
  1238.         IMPORT_CFM_FUNCTION AlignWindow
  1239.     ENDIF
  1240.  
  1241. ;
  1242. ; pascal void DragAlignedWindow(WindowPtr wp, Point startPt, Rect *boundsRect, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  1243. ;
  1244.     IF ¨ GENERATINGCFM THEN
  1245.         Macro
  1246.         _DragAlignedWindow
  1247.             move.l              #$0014004E,D0
  1248.             dc.w                $AAA3
  1249.         EndM
  1250.     ELSE
  1251.         IMPORT_CFM_FUNCTION DragAlignedWindow
  1252.     ENDIF
  1253.  
  1254. ;
  1255. ; pascal long DragAlignedGrayRgn(RgnHandle theRgn, Point startPt, Rect *boundsRect, Rect *slopRect, short axis, UniversalProcPtr actionProc, Rect *alignmentRect, ICMAlignmentProcRecordPtr alignmentProc)
  1256. ;
  1257.     IF ¨ GENERATINGCFM THEN
  1258.         Macro
  1259.         _DragAlignedGrayRgn
  1260.             move.l              #$001E004F,D0
  1261.             dc.w                $AAA3
  1262.         EndM
  1263.     ELSE
  1264.         IMPORT_CFM_FUNCTION DragAlignedGrayRgn
  1265.     ENDIF
  1266.  
  1267. ;
  1268. ; pascal OSErr SetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  1269. ;
  1270.     IF ¨ GENERATINGCFM THEN
  1271.         Macro
  1272.         _SetCSequenceDataRateParams
  1273.             move.l              #$00080050,D0
  1274.             dc.w                $AAA3
  1275.         EndM
  1276.     ELSE
  1277.         IMPORT_CFM_FUNCTION SetCSequenceDataRateParams
  1278.     ENDIF
  1279.  
  1280. ;
  1281. ; pascal OSErr SetCSequenceFrameNumber(ImageSequence seqID, long frameNumber)
  1282. ;
  1283.     IF ¨ GENERATINGCFM THEN
  1284.         Macro
  1285.         _SetCSequenceFrameNumber
  1286.             move.l              #$00080051,D0
  1287.             dc.w                $AAA3
  1288.         EndM
  1289.     ELSE
  1290.         IMPORT_CFM_FUNCTION SetCSequenceFrameNumber
  1291.     ENDIF
  1292.  
  1293. ;
  1294. ; pascal QDErr NewImageGWorld(GWorldPtr *gworld, ImageDescriptionHandle idh, GWorldFlags flags)
  1295. ;
  1296.     IF ¨ GENERATINGCFM THEN
  1297.         Macro
  1298.         _NewImageGWorld
  1299.             move.l              #$000C0052,D0
  1300.             dc.w                $AAA3
  1301.         EndM
  1302.     ELSE
  1303.         IMPORT_CFM_FUNCTION NewImageGWorld
  1304.     ENDIF
  1305.  
  1306. ;
  1307. ; pascal OSErr GetCSequenceDataRateParams(ImageSequence seqID, DataRateParamsPtr params)
  1308. ;
  1309.     IF ¨ GENERATINGCFM THEN
  1310.         Macro
  1311.         _GetCSequenceDataRateParams
  1312.             move.l              #$00080053,D0
  1313.             dc.w                $AAA3
  1314.         EndM
  1315.     ELSE
  1316.         IMPORT_CFM_FUNCTION GetCSequenceDataRateParams
  1317.     ENDIF
  1318.  
  1319. ;
  1320. ; pascal OSErr GetCSequenceFrameNumber(ImageSequence seqID, long *frameNumber)
  1321. ;
  1322.     IF ¨ GENERATINGCFM THEN
  1323.         Macro
  1324.         _GetCSequenceFrameNumber
  1325.             move.l              #$00080054,D0
  1326.             dc.w                $AAA3
  1327.         EndM
  1328.     ELSE
  1329.         IMPORT_CFM_FUNCTION GetCSequenceFrameNumber
  1330.     ENDIF
  1331.  
  1332. ;
  1333. ; pascal OSErr GetBestDeviceRect(GDHandle *gdh, Rect *rp)
  1334. ;
  1335.     IF ¨ GENERATINGCFM THEN
  1336.         Macro
  1337.         _GetBestDeviceRect
  1338.             move.l              #$00080055,D0
  1339.             dc.w                $AAA3
  1340.         EndM
  1341.     ELSE
  1342.         IMPORT_CFM_FUNCTION GetBestDeviceRect
  1343.     ENDIF
  1344.  
  1345. ;
  1346. ; pascal OSErr SetSequenceProgressProc(ImageSequence seqID, ICMProgressProcRecord *progressProc)
  1347. ;
  1348.     IF ¨ GENERATINGCFM THEN
  1349.         Macro
  1350.         _SetSequenceProgressProc
  1351.             move.l              #$00080056,D0
  1352.             dc.w                $AAA3
  1353.         EndM
  1354.     ELSE
  1355.         IMPORT_CFM_FUNCTION SetSequenceProgressProc
  1356.     ENDIF
  1357.  
  1358. ;
  1359. ; pascal OSErr GDHasScale(GDHandle gdh, short depth, Fixed *scale)
  1360. ;
  1361.     IF ¨ GENERATINGCFM THEN
  1362.         Macro
  1363.         _GDHasScale
  1364.             move.l              #$000A005A,D0
  1365.             dc.w                $AAA3
  1366.         EndM
  1367.     ELSE
  1368.         IMPORT_CFM_FUNCTION GDHasScale
  1369.     ENDIF
  1370.  
  1371. ;
  1372. ; pascal OSErr GDGetScale(GDHandle gdh, Fixed *scale, short *flags)
  1373. ;
  1374.     IF ¨ GENERATINGCFM THEN
  1375.         Macro
  1376.         _GDGetScale
  1377.             move.l              #$000C005B,D0
  1378.             dc.w                $AAA3
  1379.         EndM
  1380.     ELSE
  1381.         IMPORT_CFM_FUNCTION GDGetScale
  1382.     ENDIF
  1383.  
  1384. ;
  1385. ; pascal OSErr GDSetScale(GDHandle gdh, Fixed scale, short flags)
  1386. ;
  1387.     IF ¨ GENERATINGCFM THEN
  1388.         Macro
  1389.         _GDSetScale
  1390.             move.l              #$000A005C,D0
  1391.             dc.w                $AAA3
  1392.         EndM
  1393.     ELSE
  1394.         IMPORT_CFM_FUNCTION GDSetScale
  1395.     ENDIF
  1396.  
  1397. ;
  1398. ; pascal OSErr ICMShieldSequenceCursor(ImageSequence seqID)
  1399. ;
  1400.     IF ¨ GENERATINGCFM THEN
  1401.         Macro
  1402.         _ICMShieldSequenceCursor
  1403.             move.l              #$00040062,D0
  1404.             dc.w                $AAA3
  1405.         EndM
  1406.     ELSE
  1407.         IMPORT_CFM_FUNCTION ICMShieldSequenceCursor
  1408.     ENDIF
  1409.  
  1410. ;
  1411. ; pascal void ICMDecompressComplete(ImageSequence seqID, OSErr err, short flag, ICMCompletionProcRecordPtr completionRtn)
  1412. ;
  1413.     IF ¨ GENERATINGCFM THEN
  1414.         Macro
  1415.         _ICMDecompressComplete
  1416.             move.l              #$000C0063,D0
  1417.             dc.w                $AAA3
  1418.         EndM
  1419.     ELSE
  1420.         IMPORT_CFM_FUNCTION ICMDecompressComplete
  1421.     ENDIF
  1422.  
  1423. ;
  1424. ; pascal OSErr SetDSequenceTimeCode(ImageSequence seqID, void *timeCodeFormat, void *timeCodeTime)
  1425. ;
  1426.     IF ¨ GENERATINGCFM THEN
  1427.         Macro
  1428.         _SetDSequenceTimeCode
  1429.             move.l              #$000C0064,D0
  1430.             dc.w                $AAA3
  1431.         EndM
  1432.     ELSE
  1433.         IMPORT_CFM_FUNCTION SetDSequenceTimeCode
  1434.     ENDIF
  1435.  
  1436. ;
  1437. ; pascal OSErr CDSequenceNewMemory(ImageSequence seqID, Ptr *data, Size dataSize, long dataUse, ICMMemoryDisposedUPP memoryGoneProc, void *refCon)
  1438. ;
  1439.     IF ¨ GENERATINGCFM THEN
  1440.         Macro
  1441.         _CDSequenceNewMemory
  1442.             move.l              #$00180066,D0
  1443.             dc.w                $AAA3
  1444.         EndM
  1445.     ELSE
  1446.         IMPORT_CFM_FUNCTION CDSequenceNewMemory
  1447.     ENDIF
  1448.  
  1449. ;
  1450. ; pascal OSErr CDSequenceDisposeMemory(ImageSequence seqID, Ptr data)
  1451. ;
  1452.     IF ¨ GENERATINGCFM THEN
  1453.         Macro
  1454.         _CDSequenceDisposeMemory
  1455.             move.l              #$00080067,D0
  1456.             dc.w                $AAA3
  1457.         EndM
  1458.     ELSE
  1459.         IMPORT_CFM_FUNCTION CDSequenceDisposeMemory
  1460.     ENDIF
  1461.  
  1462. ;
  1463. ; pascal OSErr CDSequenceNewDataSource(ImageSequence seqID, ImageSequenceDataSource *sourceID, OSType sourceType, long sourceInputNumber, Handle dataDescription, void *transferProc, void *refCon)
  1464. ;
  1465.     IF ¨ GENERATINGCFM THEN
  1466.         Macro
  1467.         _CDSequenceNewDataSource
  1468.             move.l              #$001C0068,D0
  1469.             dc.w                $AAA3
  1470.         EndM
  1471.     ELSE
  1472.         IMPORT_CFM_FUNCTION CDSequenceNewDataSource
  1473.     ENDIF
  1474.  
  1475. ;
  1476. ; pascal OSErr CDSequenceDisposeDataSource(ImageSequenceDataSource sourceID)
  1477. ;
  1478.     IF ¨ GENERATINGCFM THEN
  1479.         Macro
  1480.         _CDSequenceDisposeDataSource
  1481.             move.l              #$00040069,D0
  1482.             dc.w                $AAA3
  1483.         EndM
  1484.     ELSE
  1485.         IMPORT_CFM_FUNCTION CDSequenceDisposeDataSource
  1486.     ENDIF
  1487.  
  1488. ;
  1489. ; pascal OSErr CDSequenceSetSourceData(ImageSequenceDataSource sourceID, void *data)
  1490. ;
  1491.     IF ¨ GENERATINGCFM THEN
  1492.         Macro
  1493.         _CDSequenceSetSourceData
  1494.             move.l              #$0008006A,D0
  1495.             dc.w                $AAA3
  1496.         EndM
  1497.     ELSE
  1498.         IMPORT_CFM_FUNCTION CDSequenceSetSourceData
  1499.     ENDIF
  1500.  
  1501. ;
  1502. ; pascal OSErr CDSequenceChangedSourceData(ImageSequenceDataSource sourceID)
  1503. ;
  1504.     IF ¨ GENERATINGCFM THEN
  1505.         Macro
  1506.         _CDSequenceChangedSourceData
  1507.             move.l              #$0004006B,D0
  1508.             dc.w                $AAA3
  1509.         EndM
  1510.     ELSE
  1511.         IMPORT_CFM_FUNCTION CDSequenceChangedSourceData
  1512.     ENDIF
  1513.  
  1514. ;
  1515. ; pascal OSErr PtInDSequenceData(ImageSequence seqID, void *data, Size dataSize, Point where, Boolean *hit)
  1516. ;
  1517.     IF ¨ GENERATINGCFM THEN
  1518.         Macro
  1519.         _PtInDSequenceData
  1520.             move.l              #$0014006C,D0
  1521.             dc.w                $AAA3
  1522.         EndM
  1523.     ELSE
  1524.         IMPORT_CFM_FUNCTION PtInDSequenceData
  1525.     ENDIF
  1526.  
  1527.  
  1528. identityMatrixType                EQU        $00                    ; result if matrix is identity 
  1529. translateMatrixType                EQU        $01                    ; result if matrix translates 
  1530. scaleMatrixType                    EQU        $02                    ; result if matrix scales 
  1531. scaleTranslateMatrixType        EQU        $03                    ; result if matrix scales and translates 
  1532. linearMatrixType                EQU        $04                    ; result if matrix is general 2 x 2 
  1533. linearTranslateMatrixType        EQU        $05                    ; result if matrix is general 2 x 2 and translates 
  1534. perspectiveMatrixType            EQU        $06                    ; result if matrix is general 3 x 3 
  1535. ; typedef unsigned short                 MatrixFlags
  1536.  
  1537. ;
  1538. ; pascal short GetMatrixType(const MatrixRecord *m)
  1539. ;
  1540.     IF ¨ GENERATINGCFM THEN
  1541.         Macro
  1542.         _GetMatrixType
  1543.             moveq               #20,D0
  1544.             dc.w                $ABC2
  1545.         EndM
  1546.     ELSE
  1547.         IMPORT_CFM_FUNCTION GetMatrixType
  1548.     ENDIF
  1549.  
  1550. ;
  1551. ; pascal void CopyMatrix(const MatrixRecord *m1, MatrixRecord *m2)
  1552. ;
  1553.     IF ¨ GENERATINGCFM THEN
  1554.         Macro
  1555.         _CopyMatrix
  1556.             moveq               #32,D0
  1557.             dc.w                $ABC2
  1558.         EndM
  1559.     ELSE
  1560.         IMPORT_CFM_FUNCTION CopyMatrix
  1561.     ENDIF
  1562.  
  1563. ;
  1564. ; pascal Boolean EqualMatrix(const MatrixRecord *m1, const MatrixRecord *m2)
  1565. ;
  1566.     IF ¨ GENERATINGCFM THEN
  1567.         Macro
  1568.         _EqualMatrix
  1569.             moveq               #33,D0
  1570.             dc.w                $ABC2
  1571.         EndM
  1572.     ELSE
  1573.         IMPORT_CFM_FUNCTION EqualMatrix
  1574.     ENDIF
  1575.  
  1576. ;
  1577. ; pascal void SetIdentityMatrix(MatrixRecord *matrix)
  1578. ;
  1579.     IF ¨ GENERATINGCFM THEN
  1580.         Macro
  1581.         _SetIdentityMatrix
  1582.             moveq               #21,D0
  1583.             dc.w                $ABC2
  1584.         EndM
  1585.     ELSE
  1586.         IMPORT_CFM_FUNCTION SetIdentityMatrix
  1587.     ENDIF
  1588.  
  1589. ;
  1590. ; pascal void TranslateMatrix(MatrixRecord *m, Fixed deltaH, Fixed deltaV)
  1591. ;
  1592.     IF ¨ GENERATINGCFM THEN
  1593.         Macro
  1594.         _TranslateMatrix
  1595.             moveq               #25,D0
  1596.             dc.w                $ABC2
  1597.         EndM
  1598.     ELSE
  1599.         IMPORT_CFM_FUNCTION TranslateMatrix
  1600.     ENDIF
  1601.  
  1602. ;
  1603. ; pascal void RotateMatrix(MatrixRecord *m, Fixed degrees, Fixed aboutX, Fixed aboutY)
  1604. ;
  1605.     IF ¨ GENERATINGCFM THEN
  1606.         Macro
  1607.         _RotateMatrix
  1608.             moveq               #22,D0
  1609.             dc.w                $ABC2
  1610.         EndM
  1611.     ELSE
  1612.         IMPORT_CFM_FUNCTION RotateMatrix
  1613.     ENDIF
  1614.  
  1615. ;
  1616. ; pascal void ScaleMatrix(MatrixRecord *m, Fixed scaleX, Fixed scaleY, Fixed aboutX, Fixed aboutY)
  1617. ;
  1618.     IF ¨ GENERATINGCFM THEN
  1619.         Macro
  1620.         _ScaleMatrix
  1621.             moveq               #23,D0
  1622.             dc.w                $ABC2
  1623.         EndM
  1624.     ELSE
  1625.         IMPORT_CFM_FUNCTION ScaleMatrix
  1626.     ENDIF
  1627.  
  1628. ;
  1629. ; pascal void SkewMatrix(MatrixRecord *m, Fixed skewX, Fixed skewY, Fixed aboutX, Fixed aboutY)
  1630. ;
  1631.     IF ¨ GENERATINGCFM THEN
  1632.         Macro
  1633.         _SkewMatrix
  1634.             moveq               #24,D0
  1635.             dc.w                $ABC2
  1636.         EndM
  1637.     ELSE
  1638.         IMPORT_CFM_FUNCTION SkewMatrix
  1639.     ENDIF
  1640.  
  1641. ;
  1642. ; pascal OSErr TransformFixedPoints(const MatrixRecord *m, FixedPoint *fpt, long count)
  1643. ;
  1644.     IF ¨ GENERATINGCFM THEN
  1645.         Macro
  1646.         _TransformFixedPoints
  1647.             moveq               #34,D0
  1648.             dc.w                $ABC2
  1649.         EndM
  1650.     ELSE
  1651.         IMPORT_CFM_FUNCTION TransformFixedPoints
  1652.     ENDIF
  1653.  
  1654. ;
  1655. ; pascal OSErr TransformPoints(const MatrixRecord *mp, Point *pt1, long count)
  1656. ;
  1657.     IF ¨ GENERATINGCFM THEN
  1658.         Macro
  1659.         _TransformPoints
  1660.             moveq               #35,D0
  1661.             dc.w                $ABC2
  1662.         EndM
  1663.     ELSE
  1664.         IMPORT_CFM_FUNCTION TransformPoints
  1665.     ENDIF
  1666.  
  1667. ;
  1668. ; pascal Boolean TransformFixedRect(const MatrixRecord *m, FixedRect *fr, FixedPoint *fpp)
  1669. ;
  1670.     IF ¨ GENERATINGCFM THEN
  1671.         Macro
  1672.         _TransformFixedRect
  1673.             moveq               #36,D0
  1674.             dc.w                $ABC2
  1675.         EndM
  1676.     ELSE
  1677.         IMPORT_CFM_FUNCTION TransformFixedRect
  1678.     ENDIF
  1679.  
  1680. ;
  1681. ; pascal Boolean TransformRect(const MatrixRecord *m, Rect *r, FixedPoint *fpp)
  1682. ;
  1683.     IF ¨ GENERATINGCFM THEN
  1684.         Macro
  1685.         _TransformRect
  1686.             moveq               #37,D0
  1687.             dc.w                $ABC2
  1688.         EndM
  1689.     ELSE
  1690.         IMPORT_CFM_FUNCTION TransformRect
  1691.     ENDIF
  1692.  
  1693. ;
  1694. ; pascal Boolean InverseMatrix(const MatrixRecord *m, MatrixRecord *im)
  1695. ;
  1696.     IF ¨ GENERATINGCFM THEN
  1697.         Macro
  1698.         _InverseMatrix
  1699.             moveq               #28,D0
  1700.             dc.w                $ABC2
  1701.         EndM
  1702.     ELSE
  1703.         IMPORT_CFM_FUNCTION InverseMatrix
  1704.     ENDIF
  1705.  
  1706. ;
  1707. ; pascal void ConcatMatrix(const MatrixRecord *a, MatrixRecord *b)
  1708. ;
  1709.     IF ¨ GENERATINGCFM THEN
  1710.         Macro
  1711.         _ConcatMatrix
  1712.             moveq               #27,D0
  1713.             dc.w                $ABC2
  1714.         EndM
  1715.     ELSE
  1716.         IMPORT_CFM_FUNCTION ConcatMatrix
  1717.     ENDIF
  1718.  
  1719. ;
  1720. ; pascal void RectMatrix(MatrixRecord *matrix, const Rect *srcRect, const Rect *dstRect)
  1721. ;
  1722.     IF ¨ GENERATINGCFM THEN
  1723.         Macro
  1724.         _RectMatrix
  1725.             moveq               #30,D0
  1726.             dc.w                $ABC2
  1727.         EndM
  1728.     ELSE
  1729.         IMPORT_CFM_FUNCTION RectMatrix
  1730.     ENDIF
  1731.  
  1732. ;
  1733. ; pascal void MapMatrix(MatrixRecord *matrix, const Rect *fromRect, const Rect *toRect)
  1734. ;
  1735.     IF ¨ GENERATINGCFM THEN
  1736.         Macro
  1737.         _MapMatrix
  1738.             moveq               #29,D0
  1739.             dc.w                $ABC2
  1740.         EndM
  1741.     ELSE
  1742.         IMPORT_CFM_FUNCTION MapMatrix
  1743.     ENDIF
  1744.  
  1745.     ENDIF
  1746.     ENDIF ; __IMAGECOMPRESSION__ 
  1747.  
  1748.